package com.yixq.springboot.dao;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import com.yixq.springboot.bean.SpringBootUserLog;

public interface SpringBootUserLogMongoDao extends MongoRepository<SpringBootUserLog, Integer>{

	SpringBootUserLog findByUserName(String string);
	
	SpringBootUserLog findByUserNameAndUserIp(String string, String ip);

	Page<SpringBootUserLog> findByUserName(String string, Pageable pageable);
}
